import request from '@/utils/request.js'

const Api = {
  GetModelList : '/flow/bpmnDesigner/prod/api/modelList',
  GetModelById : '/flow/bpmnDesigner/prod/api/getBpmnByModelId',
  GetHighLightedNodeVoByProcessInstanceId : '/flow/bpmnDesigner/prod/api/getHighLightedNodeVoByProcessInstanceId',
};

export const getModelList = () => {
  return request({ url: Api.GetModelList, method: 'post' })
};

export const getModelById = (modelId) => {
  return request({ url: Api.GetModelById + '/' + modelId, method: 'get' })
};

export const getHighLightedNodeVoByProcessInstanceId = (procInstId) => {
  return request({ url: Api.GetHighLightedNodeVoByProcessInstanceId + '/' + procInstId, method: 'get' })
};
